@import "~@/assets/scss/mixin.scss";

.container {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  &:hover {
    .imageWrapper {
      .image {
        transform: scale(1.1);
      }
    }
  }
}

.imageWrapper {
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    display: block;
    padding-bottom: (202 / 334 * 100%);
  }
}

.image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.1s ease-out;
}

.playStatus {
  position: absolute;
  left: 16px;
  top: 10px;
  width: 80px;
}

.recommendIcon {
  position: absolute;
  right: 0;
  top: 10px;
  width: 70px;
}

.infos {
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 46px;
  color: #fff;
  background: linear-gradient(180deg, rgba(#000, 0) 0%, rgba(#000, 0.4) 100%);
  box-sizing: border-box;
}

.userImage {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.userName {
  margin-left: 10px;
  flex: 1;
  width: 0;
  font-size: 20px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #fff;

  @include ellipsis;
}

.heatIcon {
  font-size: 18px;
}

.heatTxt {
  margin-left: 4px;
  font-size: 20px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
}

.title {
  padding: 0 20px;
  height: 68px;
  line-height: 68px;
  color: #333;
  font-size: 24px;

  @include ellipsis;
}
